import {axios} from '@/utils/request'

export function fetchList(params) {
  return axios({
    url: '/leaseRecyclingBills/queryPage',
    method: 'GET',
    params: {
      ...params
    }
  })
}

export function delObj(id) {
  return axios({
    url: `/leasing/leaseRecyclingBills/delete/${id}`,
    method: 'DELETE'
  })
}

export function getObj(id) {
  return axios({
    url: `/leaseRecyclingBills/getInfoById/${id}`,
    method: 'GET'
  })
}

export function addObj(params) {
  return axios({
    url: `/leaseRecyclingBills/addRecycling`,
    method: 'POST',
    data: {
      ...params
    }
  })
}

export function putObj(params) {
  return axios({
    url: `/leaseRecyclingBills/updateRecycling`,
    method: 'PUT',
    data: {
      ...params
    }
  })
}


export function changState(id) {
  return axios({
    url: `/leaseRecyclingBills/billsAgree/${id}`,
    method: 'get'
  })
}